package com.zian.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zian.domain.po.SysShoppingCartItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zian.domain.query.PageQuery;
import com.zian.domain.vo.ShoppingQueryVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author
 * @since 2024-09-08
 */
public interface SysShoppingCartItemMapper extends BaseMapper<SysShoppingCartItem> {

    List<ShoppingQueryVO> getShoppingCartItemList( Long userId);

    Integer getShoppingCartItemCount(Long userId);


    List<ShoppingQueryVO> getSelectedItems(@Param("userId") Long currentId, @Param("ids") List<Long> ids);

}
